﻿using System;
using System.ComponentModel;
using System.Data;
using ReflectionStudio.Core.Events;
using System.Windows;
using System.Linq;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for EditEventWindow.xaml
    /// </summary>
    public partial class TGD7X3
    { 
       
        public TGD7X3()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VGAAUF();
            this.DataContext = MV;
            InitializeComponent();
        }
        public override void vwMaster_CurrentChanged(object sender, EventArgs e)
        {
            base.vwMaster_CurrentChanged(sender, e);
            if (TMV.GAKA3 + TMV.GAKG5 == 0)
                TMV.GAKG5 = TMV.GAKG1;
            if (TMV.GAKG5 > 0)
                IsKG3 = false;
            if (TMV.GAKG3 > 0)
                IsKG3 = true;
        }
        public override void OnEdit()
        {
            if (!IsEdit)
                return;
            
            base.OnEdit();
        } 
    }
}
